Which are the most frequent exceptions thrown in Java applications? [on hold]

Posted by Chris on Programmers See other posts from Programmers or by Chris
Published on 2013-10-17T09:43:08Z Indexed on 2013/10/17 16:23 UTC
Read the original article Hit count: 264

Filed under:
|
|

1. Do you know of any statistics about the frequency of exceptions (checked and unchecked) thrown at runtime in typical Java applications? for example:
NullPointerException: 25% of all exceptions
ClassCastException: 15% of all exceptions
etc.

2. Which are the most frequent exceptions according to your own experiences?

3. Would you agree that the NullPointerException is generally the most often thrown exception?

I am asking this question in the context of the compiler development of the PPL programming language (www.practical-programming.org).
The goal is to auto-detect a maximum of frequent exceptions at compile-time.
For example, detecting all potential NullPointerExceptions at compile-time leads to null-safe software which is more reliable.

© Programmers or respective owner

Related posts about java

Related posts about code-quality